/*
 * @Author: your name
 * @Date: 2021-09-03 15:37:36
 * @LastEditTime: 2021-09-07 11:45:35
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \zbj-compass-dev\src\api\system\CompassDiary.js
 */
import request from "@/utils/request";

// 查询家长圈日记管理列表
export function listCompassDiary(query) {
  return request({
    url: "/system/CompassDiary/list",
    method: "get",
    params: query
  });
}

// 查询家长圈日记管理详细
export function getCompassDiary(id) {
  return request({
    url: "/system/CompassDiary/" + id,
    method: "get"
  });
}

// 新增家长圈日记管理
export function addCompassDiary(data) {
  return request({
    url: "/system/CompassDiary",
    method: "post",
    data: data
  });
}

// 修改家长圈日记管理
export function updateCompassDiary(data) {
  return request({
    url: "/system/CompassDiary",
    method: "put",
    data: data
  });
}

// 删除家长圈日记管理
export function delCompassDiary(id) {
  return request({
    url: "/system/CompassDiary/" + id,
    method: "delete"
  });
}

// 导出家长圈日记管理
export function exportCompassDiary(query) {
  return request({
    url: "/system/CompassDiary/export",
    method: "get",
    params: query
  });
}
//删除日志评论
export function delCompassComment(ids) {
  return request({
    url: "/system/CompassDiaryComment/" + ids,
    method: "delete"
  });
}
//获取日志评论详细信息
export function getCompassComment(ids) {
  return request({
    url: "/system/CompassDiaryComment/" + ids,
    method: "get"
  });
}
//删除评论回复
export function delCommentReply(ids) {
  return request({
    url: "/system/CompassDiaryReply/" + ids,
    method: "delete"
  });
}

//获取回复详细信息
// export function getAllParentList(){
//   return request({
//     url:"/system/CompassDiary/getAllParentList",
//     method:"get"
//   })
// }
//修改权重
export function updateWeights(ids, weights) {
  return request({
    url: "/system/CompassDiary/editWeights/" + ids + "/" + weights,
    method: "get"
  });
}
// 修改热度
export function updateHots(ids, num) {
  return request({
    url: "/system/CompassDiary/editBackAccessNum/" + ids + "/" + num,
    method: "get"
  });
}
